package com.zju.DoctorGo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zju.DoctorGo.entity.Medicine;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface MedicineMapper extends BaseMapper<Medicine> {

    List<Medicine> getAllMedicines();

    Integer updateMedicine(Medicine medicine);

    Integer deleteMedicine(Long id);

    Integer addMedicine(Medicine medicine);

    Medicine getMedicineById(Long id);
}
